<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<!--引入vue-->
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<div id="app">
  <cpn>
    <button>按钮</button>
  </cpn>
  <cpn>
    <i>哈哈哈</i>
    <div>我是div标签</div>
    <p>我是P标签</p>
  </cpn>
  <cpn></cpn>
</div>
<template id="cpn">
<div>
  <h2>我是h2标签</h2>
  <p>我是P标签</p>
  <slot></slot>
  <hr>
</div>
</template>
<script>
  const app = new Vue({
    el: "#app",
    data:{
      message:"Hello zk I am Vue !"
    },
    components:{
      cpn:{
        template:'#cpn'
      }
    }
  })
</script>
</body>
</html>
